<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@page import="com.alibaba.fastjson.JSONArray"%>
<%@page import="weaver.conn.RecordSet"%>
<%@page import="weaver.general.Util"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String workflowId = Util.null2String(request.getParameter("workFlowId"));
String nodeId = Util.null2String(request.getParameter("nodeId"));

JSONArray arr = new JSONArray();
RecordSet rs = new RecordSet();
rs.executeSql(" select * from workflowactionset where interfacetype = 3 and workflowid = '"+workflowId+"' and nodeid = '"+nodeId+"' order by actionorder ");
while(rs.next()){
	JSONObject json = new JSONObject();
	json.put("actionname",Util.null2String(rs.getString("actionname")));
	json.put("ispreoperator",Util.null2String(rs.getString("ispreoperator")));
	json.put("interfaceid",Util.null2String(rs.getString("interfaceid")));
	json.put("actionorder",Util.null2String(rs.getString("actionorder")));
	String isused = Util.null2String(rs.getString("isused"));
	json.put("isused","1".equals(isused)?true:false);
	arr.add(json);
}

out.print(arr.toJSONString());
%>